package com.itheima.dao;

import com.itheima.domain.Traveller;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ITravellerDao {

    /**
     * 根据订单查询旅客信息
     *
     * @return
     */
    @Select("select * from TRAVELLER where id in(select TRAVELLERID from ORDER_TRAVELLER where ORDERID = #{ORDERID})")
    List<Traveller> findTravellerByOrders();

}
